/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cxhd.lis.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;

/**
 *
 * @author chuoxi
 */
public class GobInterceptor implements Interceptor {

    @Override
    public void intercept(Invocation inv) {

        try {
            inv.invoke();
        } catch (Exception e) {
            e.printStackTrace();
        }

    }

    public boolean checkLogin() {

        return true;

    }

    public boolean checkVisit() {

        return true;
    }

}
